package com.tansuo365.test1.mapper.othermapper;

import com.tansuo365.test1.bean.otherbean.ShengouZong;

import java.util.List;

public interface ShengouZongMapper {

    String getTodayMaxShengouDanNumber();
    //动态查询申购总表
    List<ShengouZong> listShengouZong(ShengouZong shengouZong);
    //申购总 如果还有未采购和部分采购的情况的话 返回 否则 no
    List<ShengouZong> listShengouZongWhereNotFull(ShengouZong shengouZong);

    //根据id获取wuliaoshengoudanhao ZONG
    String selectDanhaoByPK(Integer id);

    int deleteByPrimaryKey(Integer id);

    int deleteBatchByPKArr(Integer[] ids);

    int insertSelective(ShengouZong shengouZong);

    ShengouZong selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShengouZong shengouZong);

    //candelete字段更改到1
    int updateCanDeleteByDanhao(String shengoudanhao);

    //candelete字段更改到0
    int updateCanDeleteToCan(String shengoudanhao);

    List<String> listShengouDanhao(Integer[] ids);

}